import 'dart:convert';

import 'package:coins/maintab/homepage/ArticlesPage.dart';
import 'package:flutter/material.dart';

class HomePageFragment extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return new HomePageFragmentState();
  }
}

class HomePageFragmentState extends State<HomePageFragment> {
  @override
  Widget build(BuildContext context) {
    var demoJson = {
      "category": [
        {
          "title": "Popular",
          "url": null,
          "active": null,
          "type": null,
          "href": null,
          "event": "Popular",
          "route_sn": null,
          "child_categories": [],
          "tab_type": "Popular"
        },
        {
          "title": "Home & Kitchen",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-03\/images\/banners\/0503cate\/HomeDecor.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9873",
          "event": "homeKitchen",
          "route_sn": "9873",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Health & Beauty",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/HealthBeauty.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9896",
          "event": "healthBeauty",
          "route_sn": "9896",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Women's Clothing",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-03\/images\/banners\/0503cate\/WomensClothing.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9560",
          "event": "womensClothing",
          "route_sn": "9560",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Luggage & Bags",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-03\/images\/banners\/0503cate\/LuggageBags.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9875",
          "event": "luggageBags",
          "route_sn": "9875",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Footwear",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/Footwear.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9880",
          "event": "footwear",
          "route_sn": "9880",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Men's Clothing",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/MenClothing.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9881",
          "event": "mensClothing",
          "route_sn": "9881",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Accessories",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/Accessories.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9876",
          "event": "accessories",
          "route_sn": "9876",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Electronics",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/Electronics.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9874",
          "event": "electronics",
          "route_sn": "9874",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Baby Stuff",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/BabyStuff.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9908",
          "event": "babyStuff",
          "route_sn": "9908",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Watches",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/Watches.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9882",
          "event": "watches",
          "route_sn": "9882",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Hobby, Sport, Traveling",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/HobbySportTraveling.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9909",
          "event": "hobbySportTraveling",
          "route_sn": "9909",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Garden Supplies",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/GardenSupplies.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9910",
          "event": "gardenSupplies",
          "route_sn": "9910",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Automatives & Motorcycles",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/AutomativesMotorcycles.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9945",
          "event": "automativesMotorcycles",
          "route_sn": "9945",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Weddings & Events",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/WeddingsEvents.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9952",
          "event": "weddingsEvents",
          "route_sn": "9952",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Industry & Business",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/IndustryBusiness.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9958",
          "event": "industryBusiness",
          "route_sn": "9958",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Pet products",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/PetProducts.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9959",
          "event": "petProducts",
          "route_sn": "9959",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Cameras and Optics",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/CamerasAndOptics.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9960",
          "event": "camerasOptics",
          "route_sn": "9960",
          "child_categories": [],
          "tab_type": "Normal"
        },
        {
          "title": "Office & School Supplies",
          "url":
              "\/\/d17qpog9ccnbkb.cloudfront.net\/v5res\/vova\/2018-05-08\/images\/banners\/05081stCate\/OfficeSchoolSupplies.png",
          "active": true,
          "type": "original",
          "href": "originPage=category&route_sn=9961",
          "event": "officeSchoolSupplies",
          "route_sn": "9961",
          "child_categories": [],
          "tab_type": "Normal"
        }
      ]
    };
    return new ArticlesPage(demoJson);
  }
}
